package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * Created by fatsfan on 2016/10/11.
 */

public class HomeActorListAction extends AHttpService<PbBean.PbResPageGetHomeActorList> {

    private int offset;

    public HomeActorListAction(Context context) {
        super(context);
    }

    public HomeActorListAction(Context context, int offset) {
        this(context);
        this.offset = offset;
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqPageGetHomeActorList.Builder builder = PbBean.PbReqPageGetHomeActorList.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        builder.setOffset(offset);
        return apiService.getHomeActorList(builder.build());
    }
}
